import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './assets/global.css'
import axios from 'axios'
import VueResource from 'vue-resource'
// import { reduceRight } from 'core-js/fn/array'

// // 配置请求根路径
// axios.defaults.baseURL = 'http://127.0.0.1:3000/'
// axios.interceptors.request.use(config => {
//     // console.log(config)
//     // config.headers.Authorization = window.sessionStorage.getItem('token')
//     return config
// })
// 
// Vue.prototype.$http = axios
Vue.prototype.$axios = axios
Vue.use(VueResource)

Vue.config.productionTip = false



new Vue({
    router,
    render: h => h(App)
}).$mount('#app')